package com.ncloud.chnl.entity;

import java.io.Serializable;
import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;

@SuppressWarnings("serial")
public class ChnlDepositLog implements Serializable {
	
	@JSONField(serializeUsing = ToStringSerializer.class)
	private Long logId;
	@JSONField(serializeUsing = ToStringSerializer.class)
	private Long chnlId;
	private String recvType;
	@JSONField(serializeUsing = ToStringSerializer.class)
	private Long recvValue;
	@JSONField(serializeUsing = ToStringSerializer.class)
	private Long oldAvialableValue;
	@JSONField(serializeUsing = ToStringSerializer.class)
	private Long newAvialableValue;
	@JSONField(serializeUsing = ToStringSerializer.class)
	private Long oldDeposit;
	@JSONField(serializeUsing = ToStringSerializer.class)
	private Long newDeposit;
	@JSONField(serializeUsing = ToStringSerializer.class)
	private Long oldCreditValue;
	@JSONField(serializeUsing = ToStringSerializer.class)
	private Long newCreditValue;
	@JSONField(serializeUsing = ToStringSerializer.class)
	private Long orderId;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date recvTime;
	@JSONField(serializeUsing = ToStringSerializer.class)
	private Long recvUser;
	private String remark;

	public void setOldValue(ChnlDeposit deposit){
		this.setChnlId(deposit.getChnlId());
		this.setOldAvialableValue(deposit.getAvialableValue());
		this.setOldCreditValue(deposit.getCreditValue());
		this.setOldDeposit(deposit.getDeposit());
	}
	
	public void setNewValue(ChnlDeposit deposit){
		this.setChnlId(deposit.getChnlId());
		this.setNewAvialableValue(deposit.getAvialableValue());
		this.setNewCreditValue(deposit.getCreditValue());
		this.setNewDeposit(deposit.getDeposit());
		this.setRecvTime(deposit.getUpdateTime());
		this.setRecvUser(deposit.getUpdateUser());
	}
	
	public Long getLogId() {
		return logId;
	}

	public void setLogId(Long logId) {
		this.logId = logId;
	}

	public Long getChnlId() {
		return chnlId;
	}

	public void setChnlId(Long chnlId) {
		this.chnlId = chnlId;
	}

	public String getRecvType() {
		return recvType;
	}

	public void setRecvType(String recvType) {
		this.recvType = recvType;
	}

	public Long getRecvValue() {
		return recvValue;
	}

	public void setRecvValue(Long recvValue) {
		this.recvValue = recvValue;
	}

	public Long getOldAvialableValue() {
		return oldAvialableValue;
	}

	public void setOldAvialableValue(Long oldAvialableValue) {
		this.oldAvialableValue = oldAvialableValue;
	}

	public Long getNewAvialableValue() {
		return newAvialableValue;
	}

	public void setNewAvialableValue(Long newAvialableValue) {
		this.newAvialableValue = newAvialableValue;
	}

	public Long getOldDeposit() {
		return oldDeposit;
	}

	public void setOldDeposit(Long oldDeposit) {
		this.oldDeposit = oldDeposit;
	}

	public Long getNewDeposit() {
		return newDeposit;
	}

	public void setNewDeposit(Long newDeposit) {
		this.newDeposit = newDeposit;
	}

	public Long getOldCreditValue() {
		return oldCreditValue;
	}

	public void setOldCreditValue(Long oldCreditValue) {
		this.oldCreditValue = oldCreditValue;
	}

	public Long getNewCreditValue() {
		return newCreditValue;
	}

	public void setNewCreditValue(Long newCreditValue) {
		this.newCreditValue = newCreditValue;
	}

	public Long getOrderId() {
		return orderId;
	}

	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}

	public Date getRecvTime() {
		return recvTime;
	}

	public void setRecvTime(Date recvTime) {
		this.recvTime = recvTime;
	}

	public Long getRecvUser() {
		return recvUser;
	}

	public void setRecvUser(Long recvUser) {
		this.recvUser = recvUser;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}
